package com.situ.bean;

public class StudentBean {

    // 学生ID
    private Integer stuId;
    // 学生姓名
    private String stuName;
    // 学生年龄
    private Integer age;
    // 学生性别  1->男  0->女
    private Integer sex;
    // 专业号
    private Integer majorId;
    // 专业名称
    private String majorName;
    
    
    @Override
    public String toString() {
        return "| " + stuId + " | " + stuName + " | " + age + " | " + sex + " | "
                + majorId + " | " + majorName + " |";
    }
    
    public Integer getStuId() {
        return stuId;
    }
    public void setStuId(Integer stuId) {
        this.stuId = stuId;
    }
    public String getStuName() {
        return stuName;
    }
    public void setStuName(String stuName) {
        this.stuName = stuName;
    }
    public Integer getAge() {
        return age;
    }
    public void setAge(Integer age) {
        this.age = age;
    }
    public Integer getSex() {
        return sex;
    }
    public void setSex(Integer sex) {
        this.sex = sex;
    }
    public Integer getMajorId() {
        return majorId;
    }
    public void setMajorId(Integer majorId) {
        this.majorId = majorId;
    }
    public String getMajorName() {
        return majorName;
    }
    public void setMajorName(String majorName) {
        this.majorName = majorName;
    }
    
    
    public StudentBean() {
    }
    
    public StudentBean(Integer stuId, String stuName, Integer age, Integer sex, Integer majorId, String majorName) {
        super();
        this.stuId = stuId;
        this.stuName = stuName;
        this.age = age;
        this.sex = sex;
        this.majorId = majorId;
        this.majorName = majorName;
    }
    
    

}
